﻿/// <reference path="InputControl.js" />

var ____a;

var $TextBox = TA.Turbo.Controls.TextBox = function TextBox(clientId)
{
	this.InputControl(clientId);
}
$TextBox.Inherit($InputControl);

if (____a)
{
	$TextBox.prototype = new $InputControl();
	$TextBox.prototype.InputControl = new $InputControl();
}

$PropertyDefinition.Define($TextBox, "ReadOnly", "RO", false,
{
	GetInitValue: function GetInitValue(obj)
	{
		return obj.get_Control().readOnly;
	},
	OnChanged: function _OnReadOnlyChanged()
	{
		this.get_Control().readOnly = this._properties.ReadOnly;
	}

});
$PropertyDefinition.Define($TextBox, "MaxHeight", "MH", 150,
{
	GetInitValue: function GetInitValue(obj)
	{
		return obj.get_Control().getAttribute("MaxHeight");
	},
	OnChanged: function _OnReadOnlyChanged()
	{
		this.get_Control().setAttribute("MaxHeight", this._properties.MaxHeight);
	}
});

